package com.zmx.job.admin.core.dto;

import com.zmx.job.admin.enums.RoutStrategyEnum;
import lombok.Data;
import lombok.ToString;

/**
 * @Description: 将要分发任务信息
 * @ClassName: JobSendInfo
 * @Author zhaomxr
 * @Date 2021-12-20 17:03
 */
@Data
@ToString
public class JobDistributeInfo {

    /**
     * 节点
     */
    private String name;

    /**
     * 路由策略
     */
    private RoutStrategyEnum routStrategyEnum;

    /**
     * 重试次数
     */
    private int failRetryCount;

    public JobDistributeInfo() {
    }

    public JobDistributeInfo(String name, RoutStrategyEnum routStrategyEnum, int failRetryCount) {
        this.name = name;
        this.routStrategyEnum = routStrategyEnum;
        this.failRetryCount = failRetryCount;
    }
}
